#if !defined(__CZF_LOGO_EDIT_CONFIG_DLG_H__)
#define __CZF_LOGO_EDIT_CONFIG_DLG_H__

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "../resource.h"
#include "../SimpleWnd/SimpleWnd.h"

#define CONFIG_FILE         "TrophyLogo.conf"

#define SPACEFORTAB         "SpaceForTab: "
#define TABWIDTH            "TabWidth: "
#define SYNTAXFILE          "SyntaxFile: "

class CEditConfigDlg : public CDialog  
{
public:
	BEGIN_MSG_MAP(CEditConfigDlg)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		MESSAGE_HANDLER(WM_DESTROY, OnDestroy)
		COMMAND_ID_HANDLER(IDC_BROWSE, OnBrowse)
		COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
		COMMAND_ID_HANDLER(IDOK, OnOK)
	END_MSG_MAP()

	DIALOG_ID(IDD_EDITCONFIG);

public:
	CEditConfigDlg();
	virtual ~CEditConfigDlg();

protected:
	LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
	LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
	LRESULT OnBrowse(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);

    void LoadConfigurationData();
    void StoreConfigurationData();

    HWND m_hSpaceForTab;
    HWND m_hTabSize;
    HWND m_hSyntaxFile;

public:
    bool    m_bSpaceForTab;
    UINT    m_uTabSize;
    char    m_syntaxFilename[_MAX_PATH];
    char    m_configFilename[_MAX_PATH];
};

#endif // !defined(__CZF_LOGO_EDIT_CONFIG_DLG_H__)
